package nc.arap.ws.vo;

import java.io.Serializable;

import org.json.JSONString;

import com.alibaba.fastjson.JSONObject;

public class ResponseVO implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private String code;
	private String msg;
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getMsg() {
		return this.msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	
	public JSONString toJsonStr() {
		
		JSONString str = new JSONString() {
			
			@Override
			public String toJSONString() {
				
				JSONObject root = new JSONObject();
				root.put("code", code);
				root.put("msg", msg);
				
				return root.toJSONString();
			}
		};
		
		return str;
	}
}
